<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Crowdfunding - Ajouter un Projet</title>
		<link rel="stylesheet" type="text/css" href="../style/style.css" />
	</head>
	<body>
		<%@ include file="/template/header.jsp" %>
		<section id="content">
			<h4>Information sur votre projet</h4>
			<form class="create-form" action="addProject" method="post">
					<label>Nom du projet:</label>
					<input type="text" id="name" name="name" /><BR/>
					<label>Categorie :</label>
					<select id="category" name="category">
						<c:forEach items="${categories}" var="category">
							<option id="${category.idCategory}">${category.name}</option>				
						</c:forEach>
					</select><BR/>
					<label>Description:</label><BR/>
					<textarea id="content" name="description"></textarea><BR/>
					<label>Date de fin:</label>
					<input type="date" name="dateFin" /><BR/>
					<input type="submit" value="Lancer !" />
			</form>
		</section>
		<%@ include file="/template/footer.jsp" %>
	</body>
</html>